package com.aaa.service;

import com.aaa.entity.ExamEntity;
import com.aaa.entity.Message;
import com.aaa.entity.Pager;
import com.aaa.entity.ScoreEntity;

import java.util.List;
import java.util.Map;

/**
 * fileName:ExamService
 * description:
 * author:王宇航
 * createTime:2019/10/10 14:09
 * version:1.0.0
 */
public interface ExamService {
    Pager queryAll(int pageNo);

    /**
     * 修改和删除
     * @param examEntity
     * @return
     */
    Message Update(ExamEntity examEntity);

    /**
     * 查询单个
     * @param id
     * @return
     */
    Map queryOne(int id);

    /**
     * 逻辑删除
     * @param id
     * @return
     */
    int delete(int id);

    /**
     * 查询班级
     * @param id
     * @param state
     * @return
     */
    int updateState(int id, int state);

    List queryClass();
    List queryStu(int classid);

    //录入成绩
    int addScore(List<ScoreEntity> list);
}
